{% extends '::layout.html.twig' %}

{% block title %}Projet{% endblock%}

{% block titreNav %}Projet{% endblock %}

{% block titreContent %}Liste des équipes{% endblock %}

{% block titreBreadcrumbs %}
<li><a href="#">Projet</a></li>
<li class="current"><a href="#">Créer une équipe</a></li>
{% endblock %}

{% block contentnav %}
<div class="sideWidget">
    <form method="post" {{ form_enctype(form) }}>
        <div class="formRow">{{ form_row(form.message) }}</div>
        <div class="formRow">{{ form_row(form.ref_destinataire) }}</div>
        <div class="formRow noBorderB">
            <input type="submit" class="buttonS bLightBlue" value="Ajouter">
        </div>
    </form>
</div>
{% endblock %}

{% block content %}
<div class="widget">
    <div class="whead">
        <h6>Liste de des messages</h6>

        <div class="clear"></div>
    </div>

    <ul class="messagesOne">
        {% for message in messages %}    
            <li class="{% if id == message.refDestinataire.id %}by_user
                {%else %}by_me {% endif %}">
                    <a href="#" title=""><img src="{{ asset('bundles/projectscrum/images/live/face9.png')}}" alt="" /></a>
                    <div class="messageArea">
                        <span class="aro"></span>
                        <div class="infoRow">
                            <span class="name"><strong> {{ message.refExpediteur.email }} </strong> says:</span>
                            <span class="time">{{message.dateMessage.format('Y-m-d')}}</span>
                            <div class="clear"></div>
                        </div>
                    {{message.message}}
                    </div>
                    <div class="clear"></div>
                </li>
                <li class="divider"><span></span></li>
        {% endfor %}
            </ul>
    </div>
{% endblock %}




